package com.ferry.example.spring.web;

import com.ferry.example.spring.UserService;
import com.ferry.transport.netty.consumer.FerryConsumer;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Created by daiyong
 */
@Controller
public class UserController {

	@FerryConsumer
	private UserService userService;

	public String getUser() {
		return userService.getUserName();
	}

	public String getUserName(String name) {
		return userService.getUserName(name);
	}

}
